﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace OF.Component.Enum
{



    /// <summary>
    /// 订单状态
    /// </summary>
    public class OrderStateEnumDesc
    {
        public static string GetDesc(OrderStateEnum enm)
        {
            return GetDesc((int)enm);
        }

        public static string GetDesc(int value)
        {
            string str = "";
            switch (value)
            {
                case 1:
                    str = "待审核";
                    break;
                case 2:
                    str = "待付款";
                    break;
                case 3:
                    str = "办理中";
                    break;
                case 4:
                    str = "完成";
                    break;
                case 5:
                    str = "审核驳回";
                    break;
                case 6:
                    str = "过期";
                    break;
            }
            return str;
        }
    }

    /// <summary>
    /// 支付状态
    /// </summary>
    public class PayStateEnumDesc
    {
        public static string GetDesc(PayStateEnum enm)
        {
            return GetDesc((int)enm);
        }

        public static string GetDesc(int value)
        {
            string str = "";
            switch (value)
            {
                case 1:
                    str = "等待付款";
                    break;
                case 2:
                    str = "已经付款";
                    break;
                case 3:
                    break;
                case 4:
                    break;
                case 5:
                    break;
                case 6:
                    break;
            }
            return str;
        }
    }

    /// <summary>
    /// 第三方用户来源
    /// </summary>
    public class ThirdUserSourceEnumDesc
    {
        public static string GetDesc(ThirdUserSourceEnum enm)
        {
            return GetDesc((int)enm);
        }

        public static string GetDesc(int value)
        {
            string str = "";
            switch (value)
            {
                case 1:
                    str = "APP";
                    break;
                case 2:
                    str = "支付宝小程序";
                    break;
                case 3:
                    str = "微信小程序";
                    break;
                case 4:
                    break;
                case 5:
                    break;
                case 6:
                    break;
            }
            return str;
        }
    }

    /// <summary>
    /// 用户认证
    /// </summary>
    public class AuthLevelEnumDesc
    {
        public static string GetDesc(OrderStateEnum enm)
        {
            return GetDesc((int)enm);
        }

        public static string GetDesc(int value)
        {
            string str = "";
            switch (value)
            {
                case 0:
                    str = "手机认证";
                    break;
                case 1:
                    str = "身份证认证";
                    break;
                case 2:
                    str = "语音认证";
                    break;
                case 3:
                    str = "视频认证";
                    break;
                case 4:
                    str = "认证通过";
                    break;
            }
            return str;
        }
    }
}
